package com.cooljie.dao;

import com.cooljie.entity.Student;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StudentMapper {
    int deleteByPrimaryKey(Integer studentId);

    int insert(Student record);

    int insertSelective(Student record);

    Student selectByPrimaryKey(Integer studentId);

    List<Student> selectStudentByPage(@Param(value = "pageOffset") Integer pageOffset, @Param(value = "pageSize") Integer pageSize);
    int allPages();
    int selectAllPages(@Param(value = "sno") String sno, @Param(value = "name") String name);

    List<Student> search(@Param(value = "sno") String sno, @Param(value = "name") String name, @Param(value = "pageOffset") Integer pageOffset, @Param(value = "pageSize") Integer pageSize);
    int updateByPrimaryKeySelective(Student record);

    int updateByPrimaryKey(Student record);
}